﻿//弹出确认框框
function ConfirmDel(el_message) {
    if (confirm(el_message)) {
        return true;
    }
    else {
        return false;
    }
}

//全选复选框
function doSelectItem(type) {
    var f = document.getElementById('formx');
    //alert(f["cid1"]);
    var cids = [];
    var nodelist = f["Areas"];  // cid[]为checkbox的name属性
    if (type == 1) {
        for (var i = 0; i < nodelist.length; i++) {
            nodelist[i].checked = !nodelist[i].checked;
        }
    } else {
        var value = (type == SELECTALL) ? true : false;
        for (var i = 0; i < nodelist.length; i++) {
            nodelist[i].checked = value;
        }
    }
}